package com.adcage.ojudgebackendserviceclient.service;

import com.adcage.ojudgebackendmodel.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "oJudge-backend-judge-service", path = "/api/judge/inner")
public interface JudgeFeignClient {

    /**
     * 判题
     *
     * @param questionSubmitId
     * @return
     */
    @PostMapping("/doJudge")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") Long questionSubmitId);
}
